/*
 * Chunk.cpp
 *
 *  Created on: 2017年6月21日
 *      Author: heqian
 */

#include "Chunk.h"

namespace mmseg {

Chunk::Chunk() {
	words[0] = nullptr;
	words[1] = nullptr;
	words[2] = nullptr;

}

Chunk::~Chunk() {
	if (words[0]) {
		delete words[0];
		words[0] = nullptr;
	}

	if (words[1]) {
		delete words[1];
		words[1] = nullptr;
	}

	if (words[2]) {
		delete words[2];
		words[2] = nullptr;
	}
}

Word** Chunk::getWords() {
	return words;
}

} /* namespace mmseg */
